﻿using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using DiagramDesigner.Common.Constants;
using DiagramDesigner.Module.Toolbar.Views;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.ServiceLocation;


namespace DiagramDesigner.Module.Toolbar
{
    [ModuleExport(typeof(ToolbarModule))]
    public class ToolbarModule : IModule
    {
        public void Initialize()
        {


            IRegionManager regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
            regionManager.Regions[RegionName.ToolbarRegion].Add(new ToolbarView());
        }
    }
}
